a = input()
a = a[::-1]
num=[]
for i in a:
    if i in num:
        continue
    else:
        num.append(i)
        print(i,end='')
        